home *** CD-ROM | disk | FTP | other *** search
/ World of Video / World of Video.iso / gfxprograms / 3dprograms / rayshade-4.0 / etc / rsconvert / smakefile < prev    next >
Makefile  |  1995-02-13  |  2KB  |  68 lines

  1. OPTIMIZE = OPTIMIZE
  2. CCFLAGS = CPU=68040 NOSTKCHK MATH=68881 IGNORE=85+100+161+154+84+132 STRMERGE\
  3. DATA=AUTO
  4. CC = sc
  5. MKDEP = /mkdep
  6. YACC = bison -y
  7. LEX = flex
  8. LIBRAYDIR = //libray
  9. INCLUDE = IDIR=$(LIBRAYDIR) IDIR=// IDIR=$(LIBRAYDIR)/libcommon
  10. CFLAGS = $(CCFLAGS) $(INCLUDE) $(OPTIMIZE)
  11. LIBS = LIB:unix.lib LIB:fl.lib LIB:scm881.lib LIB:sc.lib
  12.  
  13. LDFLAGS = SC SD ND NOICONS
  14.  
  15. YFLAGS = -d
  16.  
  17. CFILES = main.c yacc.c lex.c
  18. OBJS = main.o yacc.o lex.o
  19. DEPENDSRC = main.c yacc.y lex.l
  20.  
  21. .c.o:
  22.     $(CC) $(CFLAGS) $<
  23.     
  24. rsconvert: $(OBJS)
  25.     slink FROM LIB:c.o $(OBJS) TO rsconvert $(LDFLAGS) LIB $(LIBS) 
  26.  
  27. clean:
  28.     delete y.tab.h $(OBJS) lex.c yacc.c quiet
  29.  
  30. # DO NOT DELETE THIS LINE
  31. main.o: main.c
  32. main.o: //config.h
  33. main.o: //libray/libcommon/color.h
  34. main.o: //libray/libcommon/common.h
  35. main.o: //libray/libcommon/error.h
  36. main.o: //libray/libcommon/expr.h
  37. main.o: //libray/libcommon/ray.h
  38. main.o: //libray/libcommon/transform.h
  39. main.o: //libray/libcommon/vector.h
  40. yacc.o: yacc.y
  41. yacc.o: //config.h
  42. yacc.o: //libray/libcommon/color.h
  43. yacc.o: //libray/libcommon/common.h
  44. yacc.o: //libray/libcommon/error.h
  45. yacc.o: //libray/libcommon/expr.h
  46. yacc.o: //libray/libcommon/ray.h
  47. yacc.o: //libray/libcommon/transform.h
  48. yacc.o: //libray/libcommon/vector.h
  49. #    $(CC) $(CCFLAGS) $(INCLUDE) $>.c
  50.     $(YACC) $(YFLAGS) $*.y
  51.     copy y.tab.c $*.c
  52.     delete y.tab.c
  53.     $(CC) $(CFLAGS) $*.c
  54. lex.o: lex.l
  55. lex.o: //config.h
  56. lex.o: //libray/libcommon/color.h
  57. lex.o: //libray/libcommon/common.h
  58. lex.o: //libray/libcommon/error.h
  59. lex.o: //libray/libcommon/expr.h
  60. lex.o: //libray/libcommon/ray.h
  61. lex.o: //libray/libcommon/transform.h
  62. lex.o: //libray/libcommon/vector.h
  63. #    $(CC) $(CCFLAGS) $(INCLUDE) $>.c
  64.     $(LEX) $*.l
  65.     copy lex.yy.c $*.c
  66.     delete lex.yy.c
  67.     $(CC) $(CFLAGS) $*.c
  68.